﻿/************************************************************************************
* Copyright (c) 2019 All Rights Reserved.
*命名空间：Merge.BLL
*文件名： WorkClass
*创建人： Liebeskind
*创建时间：2019/9/3 12:16:49
*描述
*=====================================================================
*修改标记
*修改时间：2019/9/3 12:16:49
*修改人：Liebeskind
*描述：
************************************************************************************/
using System;

namespace Merge.BLL
{
    public static class WorkClass
    {


        public static bool AttendanceTime()
        {
            #region 作业时间
            if ((DateTime.Now.ToString("HH") == "11" && DateTime.Now.Minute >= 30) ||
                (DateTime.Now.ToString("HH") == "12" && DateTime.Now.Minute <= 30) ||
                (DateTime.Now.ToString("HH") == "16" && DateTime.Now.Minute >= 30) ||
                (DateTime.Now.ToString("HH") == "17" && DateTime.Now.Minute <= 30)
                )
            {
                return false;
            }
            else
            {
                return true;
            }
            #endregion
        }
        public static bool RoutineSelfInspectioning = false;
        public static bool RoutineSelfInspectionTime()
        {
            #region 日常自检时段
            if (DateTime.Now.Minute == 10)
            {
                if (!RoutineSelfInspectioning)
                {
                    RoutineSelfInspectioning = true;
                    return true;
                }
                else
                {
                    return false;
                }
            }
            else
            {
                RoutineSelfInspectioning = false;
                return false;
            }
            #endregion
        }
    }
}
